package com.lovo.project2.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lovo.project2.bean.ProDetailsBean;
import com.lovo.project2.mapper.IProDetailsBeanMapper;
import com.lovo.project2.service.IProDetailsBeanService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProDetailsBeanServiceImpl extends ServiceImpl<IProDetailsBeanMapper, ProDetailsBean> implements IProDetailsBeanService {
    @Override
    public List<ProDetailsBean> queryAllProDetailsBean(int procuredBeanId) {
        QueryWrapper queryWrapper=new QueryWrapper();
        queryWrapper.eq("pro_id",procuredBeanId);

        return baseMapper.selectList(queryWrapper);
    }
}
